#ifndef _AUDIO_RESOURCE_H_
#define _AUDIO_RESOURCE_H_

#include <string>
#include "resman/resource.h"
#include "vfs/zipfile.h"

namespace audio
{

class AudioResource : public res::Resource
{
public:
	/// reload from disk
	static res::Resource*	CreateAudioResource();

	bool					IsLoaded() { return m_pBuffer != NULL; };

private:
	AudioResource();
	~AudioResource();
	/// functions used to instantiate data
	virtual void			InitializeResource();
	virtual void			ReleaseResource();

	// raw buffer
	char*					m_pBuffer;
	unsigned long			m_BufferSize;

	bool					m_Stereo;
	int						m_Frequency;
};

}; //namespace audio

#endif // _AUDIO_RESOURCE_H_
